/*
 * ID Class for Orderline class, orderline got a composit primary key made from
 * productId in Product and basketId in ShoppingBasket.
 */

package webshop.data;
import javax.persistence.*;
import java.io.Serializable;


/**
 *
 * @author Ohm
 */
@Embeddable
public class OrderlineId implements Serializable {
    
    @Column(name="product_id", nullable = false)
    public long productId;
    
    @Column(name="basket_id", nullable = false)
    public long basketId;


/*
    // Overriders.
    @Override
    public boolean equals(Object obj){
        return true;

    }

    @Override
    public int hashCode() {
        return 0;
    }
 * */
}
